package com.hb.medical_research_system.service;

import com.hb.medical_research_system.common.Results;
import com.hb.medical_research_system.entity.Article;
import com.hb.medical_research_system.entity.Collection;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author hb
* @description 针对表【collection】的数据库操作Service
* @createDate 2023-02-25 11:14:53
*/
public interface CollectionService extends IService<Collection> {

    /**
     * 添加收藏
     * @param articleId
     * @return
     */
    Results add(Long articleId);

    /**
     * 删除收藏
     * @param articleId
     * @return
     */
    Results delete(Long articleId);


}
